package com.hcb.micro.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hcb.micro.dao.interfaceClass.QqbsAccountMapper;
import com.hcb.micro.dto.QqbsAccount;
import com.hcb.micro.service.IQqbsAccountService;

@Service("QqbsAccountService")
public class QqbsAccountServiceImpl implements IQqbsAccountService {

	@Autowired
	QqbsAccountMapper qqbsAccountMapper;
	
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return qqbsAccountMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(QqbsAccount record) {
		return qqbsAccountMapper.insert(record);
	}

	@Override
	public int insertSelective(QqbsAccount record) {
		return qqbsAccountMapper.insertSelective(record);
	}

	@Override
	public QqbsAccount selectByPrimaryKey(Integer id) {
		return qqbsAccountMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(QqbsAccount record) {
		return qqbsAccountMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(QqbsAccount record) {
		return qqbsAccountMapper.updateByPrimaryKey(record);
	}

	@Override
	public QqbsAccount selectOpenId(String openId) {
		return qqbsAccountMapper.selectOpenId(openId);
	}

	@Override
	public List<QqbsAccount> selectByPara(Map<String, Object> para) {
		return qqbsAccountMapper.selectByPara(para);
	}

	@Override
	public QqbsAccount selectByAccountId(Integer accountId) {
		return qqbsAccountMapper.selectByAccountId(accountId);
	}

}
